package com.cloudm.technician.ui.modules.cloudm_box.cloudm_device

import com.cloudm.technician.data.model.DeviceInfo
import com.cloudm.technician.ui.base.BasePresenter
import com.cloudm.technician.ui.base.BaseView

/**
 * 作者: wesley
 * 时间: 2017/12/25
 * 描述: 协议接口
 */
interface CloudmDeviceContract {

    interface View : BaseView {

        fun deviceInfoLoadSuccess(info: DeviceInfo)

        fun deviceInfoLoadFailure(errorMsg: String)

        fun showDeviceInfoEmpMsg()

        fun finishSelf()

        fun showLoadingMsg()

        fun openActivity(info: DeviceInfo)
    }

    interface Presenter : BasePresenter {


        fun getDeviceInfo(sn: String?)


        fun openActivity(info: DeviceInfo?)
    }
}